<!-- 新增数据页面 -->
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript">
    $(function() {
    	progressClose();
    	
        $('#addForm').form({
            url : '${pageContext.request.contextPath}/sys/log/add',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                	parent.$.messager.alert('提示', result.msg, 'info');
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为list.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false" >
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 3px;" >
        <form id="addForm" method="post" >
            <table class="grid">
				<tr>
		            <td>登陆名</td>
		            <td><input name="loginName" type="text" placeholder="请输入登陆名" 
		            	class="easyui-validatebox" data-options="required:true" value=""></td>
		        </tr>
				<tr>
		            <td>真实名</td>
		            <td><input name="realName" type="text" placeholder="请输入真实名" 
		            	class="easyui-validatebox" data-options="required:true" value=""></td>
		        </tr>
				<tr>
		            <td>内容</td>
		            <td><input name="optContent" type="text" placeholder="请输入内容" 
		            	class="easyui-validatebox" data-options="required:true" value=""></td>
		        </tr>
				<tr>
		            <td>客户端ip</td>
		            <td><input name="clientIp" type="text" placeholder="请输入客户端ip" 
		            	class="easyui-validatebox" data-options="required:true" value=""></td>
		        </tr>
				<tr>
		            <td>执行结果</td>
		            <td><input name="resultText" type="text" placeholder="请输入执行结果" 
		            	class="easyui-validatebox" data-options="required:true" value=""></td>
		        </tr>
				<tr>
		            <td>响应结果码</td>
		            <td><input name="resultCode" type="text" placeholder="请输入响应结果码" 
		            	class="easyui-validatebox" data-options="required:true" value=""></td>
		        </tr>
 <!-- 如果有需要使用选择控件和多行控件，请参照如下代码        
<tr>
    <td>状态</td>
    <td >
        <select id="status" name="status" class="easyui-combobox" 
        	data-options="width:140,height:29,editable:false,panelHeight:'auto'">
            <option value="0">正常</option>
            <option value="1">停用</option>
        </select>
    </td>
</tr>
<tr>
    <td>备注</td>
    <td colspan="3"><textarea name="description" rows="" cols="" ></textarea></td>
</tr>
-->
            </table>
        </form>
    </div>
</div>